<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: QwtText Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.1.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_qwt_text.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_qwt_text-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QwtText Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A class representing a text.  
 <a href="class_qwt_text.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qwt__text_8h_source.html">qwt_text.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a63e0d6a59a427a37ed0bfa71b782fd76"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">TextFormat</a> { <br />
&#160;&#160;<a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">AutoText</a> = 0, 
<a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76aa6810f6d3c785c202d2507c601b97787">PlainText</a>, 
<a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a88f7eee487ce6f7769b67494623d8b79">RichText</a>, 
<a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76abf479897e4514198246a0b232a597caf">MathMLText</a>, 
<br />
&#160;&#160;<a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76af31a767faf2f7e322941866c6140ddc6">TeXText</a>, 
<a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76ad69e3155611ef96eb14ed0cfeb69fd3d">OtherFormat</a> = 100
<br />
 }</td></tr>
<tr class="memdesc:a63e0d6a59a427a37ed0bfa71b782fd76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Text format.  <a href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">More...</a><br /></td></tr>
<tr class="separator:a63e0d6a59a427a37ed0bfa71b782fd76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9739e47ea489e690f121e4b1d27ae24e"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24e">PaintAttribute</a> { <a class="el" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24eac12e48f17fd02a6bc1840c61c4862a65">PaintUsingTextFont</a> = 0x01, 
<a class="el" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24ea1aa48cee0a54089820e77600cf93dc4b">PaintUsingTextColor</a> = 0x02, 
<a class="el" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24ea77dd66b2a65e9998d9803672791e1456">PaintBackground</a> = 0x04
 }</td></tr>
<tr class="memdesc:a9739e47ea489e690f121e4b1d27ae24e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Paint Attributes.  <a href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24e">More...</a><br /></td></tr>
<tr class="separator:a9739e47ea489e690f121e4b1d27ae24e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0953aabc098f410dba89bbada47f2e5a"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5a">LayoutAttribute</a> { <a class="el" href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5aa35990c4c74747580e9357d490ebce42f">MinimumLayout</a> = 0x01
 }</td></tr>
<tr class="memdesc:a0953aabc098f410dba89bbada47f2e5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Layout Attributes The layout attributes affects some aspects of the layout of the text.  <a href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5a">More...</a><br /></td></tr>
<tr class="separator:a0953aabc098f410dba89bbada47f2e5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d239ca5c8e0cd3c748325ad453bb13f"><td class="memItemLeft" align="right" valign="top"><a id="a0d239ca5c8e0cd3c748325ad453bb13f"></a>
typedef QFlags&lt; <a class="el" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24e">PaintAttribute</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a0d239ca5c8e0cd3c748325ad453bb13f">PaintAttributes</a></td></tr>
<tr class="memdesc:a0d239ca5c8e0cd3c748325ad453bb13f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Paint attributes. <br /></td></tr>
<tr class="separator:a0d239ca5c8e0cd3c748325ad453bb13f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadd451b81d506c5bbefdddb8a100b9a3"><td class="memItemLeft" align="right" valign="top"><a id="aadd451b81d506c5bbefdddb8a100b9a3"></a>
typedef QFlags&lt; <a class="el" href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5a">LayoutAttribute</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#aadd451b81d506c5bbefdddb8a100b9a3">LayoutAttributes</a></td></tr>
<tr class="memdesc:aadd451b81d506c5bbefdddb8a100b9a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Layout attributes. <br /></td></tr>
<tr class="separator:aadd451b81d506c5bbefdddb8a100b9a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8c141207783c1e88b50df383a616c132"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a8c141207783c1e88b50df383a616c132">QwtText</a> (const QString &amp;=QString(), <a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">TextFormat</a> textFormat=<a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">AutoText</a>)</td></tr>
<tr class="separator:a8c141207783c1e88b50df383a616c132"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af88b42733c420574fa76b2d58b965313"><td class="memItemLeft" align="right" valign="top"><a id="af88b42733c420574fa76b2d58b965313"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#af88b42733c420574fa76b2d58b965313">QwtText</a> (const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;)</td></tr>
<tr class="memdesc:af88b42733c420574fa76b2d58b965313"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. <br /></td></tr>
<tr class="separator:af88b42733c420574fa76b2d58b965313"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba243ac11b91979ad3f2ee7d3c700195"><td class="memItemLeft" align="right" valign="top"><a id="aba243ac11b91979ad3f2ee7d3c700195"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#aba243ac11b91979ad3f2ee7d3c700195">~QwtText</a> ()</td></tr>
<tr class="memdesc:aba243ac11b91979ad3f2ee7d3c700195"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aba243ac11b91979ad3f2ee7d3c700195"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4a8678071c7e114c47a21f1f78cca37"><td class="memItemLeft" align="right" valign="top"><a id="ad4a8678071c7e114c47a21f1f78cca37"></a>
<a class="el" href="class_qwt_text.html">QwtText</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#ad4a8678071c7e114c47a21f1f78cca37">operator=</a> (const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;)</td></tr>
<tr class="memdesc:ad4a8678071c7e114c47a21f1f78cca37"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator. <br /></td></tr>
<tr class="separator:ad4a8678071c7e114c47a21f1f78cca37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09bb31bf999e2b6a88bc76f0b9626029"><td class="memItemLeft" align="right" valign="top"><a id="a09bb31bf999e2b6a88bc76f0b9626029"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a09bb31bf999e2b6a88bc76f0b9626029">operator==</a> (const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;) const</td></tr>
<tr class="memdesc:a09bb31bf999e2b6a88bc76f0b9626029"><td class="mdescLeft">&#160;</td><td class="mdescRight">Relational operator. <br /></td></tr>
<tr class="separator:a09bb31bf999e2b6a88bc76f0b9626029"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab00c5b829e19d18d96d296840b3de5d8"><td class="memItemLeft" align="right" valign="top"><a id="ab00c5b829e19d18d96d296840b3de5d8"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#ab00c5b829e19d18d96d296840b3de5d8">operator!=</a> (const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;) const</td></tr>
<tr class="memdesc:ab00c5b829e19d18d96d296840b3de5d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Relational operator. <br /></td></tr>
<tr class="separator:ab00c5b829e19d18d96d296840b3de5d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ba9caa82fcfbc4bfbf8ce20ccea981e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a9ba9caa82fcfbc4bfbf8ce20ccea981e">setText</a> (const QString &amp;, <a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> textFormat=<a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">AutoText</a>)</td></tr>
<tr class="separator:a9ba9caa82fcfbc4bfbf8ce20ccea981e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad94fd632f61b1e5d9f68ce65c445982e"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">text</a> () const</td></tr>
<tr class="separator:ad94fd632f61b1e5d9f68ce65c445982e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9947790e30eb555a651872ed97757ef"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#ad9947790e30eb555a651872ed97757ef">isNull</a> () const</td></tr>
<tr class="separator:ad9947790e30eb555a651872ed97757ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7a14283b812f50234fa0ee960e65307"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#aa7a14283b812f50234fa0ee960e65307">isEmpty</a> () const</td></tr>
<tr class="separator:aa7a14283b812f50234fa0ee960e65307"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad071f3c4fae4512a1cc71554d95eb69a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#ad071f3c4fae4512a1cc71554d95eb69a">setFont</a> (const QFont &amp;)</td></tr>
<tr class="separator:ad071f3c4fae4512a1cc71554d95eb69a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67039ac189d3a9683801851ac70e87a6"><td class="memItemLeft" align="right" valign="top"><a id="a67039ac189d3a9683801851ac70e87a6"></a>
QFont&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a> () const</td></tr>
<tr class="memdesc:a67039ac189d3a9683801851ac70e87a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the font. <br /></td></tr>
<tr class="separator:a67039ac189d3a9683801851ac70e87a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affd35b4cd92e45659b895c5614e3eedd"><td class="memItemLeft" align="right" valign="top">QFont&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#affd35b4cd92e45659b895c5614e3eedd">usedFont</a> (const QFont &amp;) const</td></tr>
<tr class="separator:affd35b4cd92e45659b895c5614e3eedd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcbaa37913afaa0e92a649923cfe500b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#afcbaa37913afaa0e92a649923cfe500b">setRenderFlags</a> (int)</td></tr>
<tr class="memdesc:afcbaa37913afaa0e92a649923cfe500b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the render flags.  <a href="class_qwt_text.html#afcbaa37913afaa0e92a649923cfe500b">More...</a><br /></td></tr>
<tr class="separator:afcbaa37913afaa0e92a649923cfe500b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4284800d239934818c1951381ff52d05"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a4284800d239934818c1951381ff52d05">renderFlags</a> () const</td></tr>
<tr class="separator:a4284800d239934818c1951381ff52d05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7de5839a5c3b1ee367cfbd5691aa105"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#ac7de5839a5c3b1ee367cfbd5691aa105">setColor</a> (const QColor &amp;)</td></tr>
<tr class="separator:ac7de5839a5c3b1ee367cfbd5691aa105"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a731bc1eca7825f55f3026f840c0fa42f"><td class="memItemLeft" align="right" valign="top"><a id="a731bc1eca7825f55f3026f840c0fa42f"></a>
QColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a731bc1eca7825f55f3026f840c0fa42f">color</a> () const</td></tr>
<tr class="memdesc:a731bc1eca7825f55f3026f840c0fa42f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the pen color, used for painting the text. <br /></td></tr>
<tr class="separator:a731bc1eca7825f55f3026f840c0fa42f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19bc6e3baa215dccab7993cd211ed975"><td class="memItemLeft" align="right" valign="top">QColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a19bc6e3baa215dccab7993cd211ed975">usedColor</a> (const QColor &amp;) const</td></tr>
<tr class="separator:a19bc6e3baa215dccab7993cd211ed975"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c62dfe82aa94f113cd4f8702bd2242c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a7c62dfe82aa94f113cd4f8702bd2242c">setBorderRadius</a> (double)</td></tr>
<tr class="separator:a7c62dfe82aa94f113cd4f8702bd2242c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d75098c287af25e35111c73f166d3ce"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a5d75098c287af25e35111c73f166d3ce">borderRadius</a> () const</td></tr>
<tr class="separator:a5d75098c287af25e35111c73f166d3ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca4dd700b7a182114a8c0eb864c4ec2f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#aca4dd700b7a182114a8c0eb864c4ec2f">setBorderPen</a> (const QPen &amp;)</td></tr>
<tr class="separator:aca4dd700b7a182114a8c0eb864c4ec2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa094ef46da5cc2856538297a249e65f"><td class="memItemLeft" align="right" valign="top">QPen&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#afa094ef46da5cc2856538297a249e65f">borderPen</a> () const</td></tr>
<tr class="separator:afa094ef46da5cc2856538297a249e65f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af016a747b234aede9f0cbbeb06ed2802"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#af016a747b234aede9f0cbbeb06ed2802">setBackgroundBrush</a> (const QBrush &amp;)</td></tr>
<tr class="separator:af016a747b234aede9f0cbbeb06ed2802"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f23d507c59b16d81b96ecf1e79131a8"><td class="memItemLeft" align="right" valign="top">QBrush&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a0f23d507c59b16d81b96ecf1e79131a8">backgroundBrush</a> () const</td></tr>
<tr class="separator:a0f23d507c59b16d81b96ecf1e79131a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac80e3f05137173059b196206ceea9e8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#aac80e3f05137173059b196206ceea9e8">setPaintAttribute</a> (<a class="el" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24e">PaintAttribute</a>, bool on=true)</td></tr>
<tr class="separator:aac80e3f05137173059b196206ceea9e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a390f10d5fccfb7070fe0c1ace8fdd0ce"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a390f10d5fccfb7070fe0c1ace8fdd0ce">testPaintAttribute</a> (<a class="el" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24e">PaintAttribute</a>) const</td></tr>
<tr class="separator:a390f10d5fccfb7070fe0c1ace8fdd0ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b621d3104ead2185d2d939b1f5b9d68"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a2b621d3104ead2185d2d939b1f5b9d68">setLayoutAttribute</a> (<a class="el" href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5a">LayoutAttribute</a>, bool on=true)</td></tr>
<tr class="separator:a2b621d3104ead2185d2d939b1f5b9d68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6b2a300b29b5f0ee90289e962c68f39"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#ad6b2a300b29b5f0ee90289e962c68f39">testLayoutAttribute</a> (<a class="el" href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5a">LayoutAttribute</a>) const</td></tr>
<tr class="separator:ad6b2a300b29b5f0ee90289e962c68f39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a712268214db7f3c4a3be47f7d6d13d1d"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a712268214db7f3c4a3be47f7d6d13d1d">heightForWidth</a> (double width, const QFont &amp;=QFont()) const</td></tr>
<tr class="separator:a712268214db7f3c4a3be47f7d6d13d1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a126221f5dbf46d03806498b262c493c5"><td class="memItemLeft" align="right" valign="top">QSizeF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a126221f5dbf46d03806498b262c493c5">textSize</a> (const QFont &amp;=QFont()) const</td></tr>
<tr class="separator:a126221f5dbf46d03806498b262c493c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad81ee227016361a0362081bc67c301da"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#ad81ee227016361a0362081bc67c301da">draw</a> (QPainter *painter, const QRectF &amp;rect) const</td></tr>
<tr class="separator:ad81ee227016361a0362081bc67c301da"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a053d8fdb4de77bd3b6f2eb0ecd3980ca"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="class_qwt_text_engine.html">QwtTextEngine</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a053d8fdb4de77bd3b6f2eb0ecd3980ca">textEngine</a> (const QString &amp;<a class="el" href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">text</a>, <a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a>=<a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">AutoText</a>)</td></tr>
<tr class="separator:a053d8fdb4de77bd3b6f2eb0ecd3980ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2828c4976bd30572d236811bc30037be"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="class_qwt_text_engine.html">QwtTextEngine</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#a2828c4976bd30572d236811bc30037be">textEngine</a> (<a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a>)</td></tr>
<tr class="memdesc:a2828c4976bd30572d236811bc30037be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find the text engine for a text format.  <a href="class_qwt_text.html#a2828c4976bd30572d236811bc30037be">More...</a><br /></td></tr>
<tr class="separator:a2828c4976bd30572d236811bc30037be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef6a1e71b1feba3116ce69f6c9de70ad"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text.html#aef6a1e71b1feba3116ce69f6c9de70ad">setTextEngine</a> (<a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a>, <a class="el" href="class_qwt_text_engine.html">QwtTextEngine</a> *)</td></tr>
<tr class="separator:aef6a1e71b1feba3116ce69f6c9de70ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A class representing a text. </p>
<p>A <a class="el" href="class_qwt_text.html" title="A class representing a text.">QwtText</a> is a text including a set of attributes how to render it.</p>
<ul>
<li>Format<br  />
 A text might include control sequences (f.e tags) describing how to render it. Each format (f.e MathML, TeX, Qt Rich Text) has its own set of control sequences, that can be handles by a special <a class="el" href="class_qwt_text_engine.html" title="Abstract base class for rendering text strings.">QwtTextEngine</a> for this format.</li>
<li>Background<br  />
 A text might have a background, defined by a QPen and QBrush to improve its visibility. The corners of the background might be rounded.</li>
<li>Font<br  />
 A text might have an individual font.</li>
<li>Color<br  />
 A text might have an individual color.</li>
<li>Render Flags<br  />
 Flags from Qt::AlignmentFlag and Qt::TextFlag used like in QPainter::drawText().</li>
</ul>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text_engine.html" title="Abstract base class for rendering text strings.">QwtTextEngine</a>, <a class="el" href="class_qwt_text_label.html" title="A Widget which displays a QwtText.">QwtTextLabel</a> </dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a0953aabc098f410dba89bbada47f2e5a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0953aabc098f410dba89bbada47f2e5a">&#9670;&nbsp;</a></span>LayoutAttribute</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5a">QwtText::LayoutAttribute</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Layout Attributes The layout attributes affects some aspects of the layout of the text. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a0953aabc098f410dba89bbada47f2e5aa35990c4c74747580e9357d490ebce42f"></a>MinimumLayout&#160;</td><td class="fielddoc"><p>Layout the text without its margins. This mode is useful if a text needs to be aligned accurately, like the tick labels of a scale. If <a class="el" href="class_qwt_text_engine.html#a83c8d3dc590b9914e9216c01e78e0838">QwtTextEngine::textMargins</a> is not implemented for the format of the text, MinimumLayout has no effect. </p>
</td></tr>
</table>

</div>
</div>
<a id="a9739e47ea489e690f121e4b1d27ae24e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9739e47ea489e690f121e4b1d27ae24e">&#9670;&nbsp;</a></span>PaintAttribute</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24e">QwtText::PaintAttribute</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Paint Attributes. </p>
<p>Font and color and background are optional attributes of a <a class="el" href="class_qwt_text.html" title="A class representing a text.">QwtText</a>. The paint attributes hold the information, if they are set. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a9739e47ea489e690f121e4b1d27ae24eac12e48f17fd02a6bc1840c61c4862a65"></a>PaintUsingTextFont&#160;</td><td class="fielddoc"><p>The text has an individual font. </p>
</td></tr>
<tr><td class="fieldname"><a id="a9739e47ea489e690f121e4b1d27ae24ea1aa48cee0a54089820e77600cf93dc4b"></a>PaintUsingTextColor&#160;</td><td class="fielddoc"><p>The text has an individual color. </p>
</td></tr>
<tr><td class="fieldname"><a id="a9739e47ea489e690f121e4b1d27ae24ea77dd66b2a65e9998d9803672791e1456"></a>PaintBackground&#160;</td><td class="fielddoc"><p>The text has an individual background. </p>
</td></tr>
</table>

</div>
</div>
<a id="a63e0d6a59a427a37ed0bfa71b782fd76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63e0d6a59a427a37ed0bfa71b782fd76">&#9670;&nbsp;</a></span>TextFormat</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Text format. </p>
<p>The text format defines the <a class="el" href="class_qwt_text_engine.html" title="Abstract base class for rendering text strings.">QwtTextEngine</a>, that is used to render the text.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text_engine.html" title="Abstract base class for rendering text strings.">QwtTextEngine</a>, <a class="el" href="class_qwt_text.html#aef6a1e71b1feba3116ce69f6c9de70ad">setTextEngine()</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1"></a>AutoText&#160;</td><td class="fielddoc"><p>The text format is determined using <a class="el" href="class_qwt_text_engine.html#a98316f2f6f4f50216ceffbe9babe2901">QwtTextEngine::mightRender()</a> for all available text engines in increasing order &gt; PlainText. If none of the text engines can render the text is rendered like <a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76aa6810f6d3c785c202d2507c601b97787" title="Draw the text as it is, using a QwtPlainTextEngine.">QwtText::PlainText</a>. </p>
</td></tr>
<tr><td class="fieldname"><a id="a63e0d6a59a427a37ed0bfa71b782fd76aa6810f6d3c785c202d2507c601b97787"></a>PlainText&#160;</td><td class="fielddoc"><p>Draw the text as it is, using a <a class="el" href="class_qwt_plain_text_engine.html" title="A text engine for plain texts.">QwtPlainTextEngine</a>. </p>
</td></tr>
<tr><td class="fieldname"><a id="a63e0d6a59a427a37ed0bfa71b782fd76a88f7eee487ce6f7769b67494623d8b79"></a>RichText&#160;</td><td class="fielddoc"><p>Use the Scribe framework (Qt Rich Text) to render the text. </p>
</td></tr>
<tr><td class="fieldname"><a id="a63e0d6a59a427a37ed0bfa71b782fd76abf479897e4514198246a0b232a597caf"></a>MathMLText&#160;</td><td class="fielddoc"><p>Use a MathML (<a href="http://en.wikipedia.org/wiki/MathML">http://en.wikipedia.org/wiki/MathML</a>) render engine to display the text. The Qwt MathML extension offers such an engine based on the MathML renderer of the former Qt solutions package. To enable MathML support the following code needs to be added to the application:</p>
<div class="fragment"><div class="line"><a class="code" href="class_qwt_text.html#aef6a1e71b1feba3116ce69f6c9de70ad">QwtText::setTextEngine</a>( <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76abf479897e4514198246a0b232a597caf">QwtText::MathMLText</a>, <span class="keyword">new</span> <a class="code" href="class_qwt_math_m_l_text_engine.html">QwtMathMLTextEngine</a>() );</div>
</div><!-- fragment --> </td></tr>
<tr><td class="fieldname"><a id="a63e0d6a59a427a37ed0bfa71b782fd76af31a767faf2f7e322941866c6140ddc6"></a>TeXText&#160;</td><td class="fielddoc"><p>Use a TeX (<a href="http://en.wikipedia.org/wiki/TeX">http://en.wikipedia.org/wiki/TeX</a>) render engine to display the text ( not implemented yet ). </p>
</td></tr>
<tr><td class="fieldname"><a id="a63e0d6a59a427a37ed0bfa71b782fd76ad69e3155611ef96eb14ed0cfeb69fd3d"></a>OtherFormat&#160;</td><td class="fielddoc"><p>The number of text formats can be extended using setTextEngine. Formats &gt;= <a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76ad69e3155611ef96eb14ed0cfeb69fd3d">QwtText::OtherFormat</a> are not used by Qwt. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a8c141207783c1e88b50df383a616c132"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c141207783c1e88b50df383a616c132">&#9670;&nbsp;</a></span>QwtText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QwtText::QwtText </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>text</em> = <code>QString()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a>&#160;</td>
          <td class="paramname"><em>textFormat</em> = <code><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">AutoText</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>Text content </td></tr>
    <tr><td class="paramname">textFormat</td><td>Text format </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a0f23d507c59b16d81b96ecf1e79131a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f23d507c59b16d81b96ecf1e79131a8">&#9670;&nbsp;</a></span>backgroundBrush()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QBrush QwtText::backgroundBrush </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Background brush </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#af016a747b234aede9f0cbbeb06ed2802">setBackgroundBrush()</a>, <a class="el" href="class_qwt_text.html#afa094ef46da5cc2856538297a249e65f">borderPen()</a> </dd></dl>

</div>
</div>
<a id="afa094ef46da5cc2856538297a249e65f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa094ef46da5cc2856538297a249e65f">&#9670;&nbsp;</a></span>borderPen()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPen QwtText::borderPen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Background pen </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#aca4dd700b7a182114a8c0eb864c4ec2f">setBorderPen()</a>, <a class="el" href="class_qwt_text.html#a0f23d507c59b16d81b96ecf1e79131a8">backgroundBrush()</a> </dd></dl>

</div>
</div>
<a id="a5d75098c287af25e35111c73f166d3ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d75098c287af25e35111c73f166d3ce">&#9670;&nbsp;</a></span>borderRadius()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double QwtText::borderRadius </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Radius for the corners of the border frame </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#a7c62dfe82aa94f113cd4f8702bd2242c">setBorderRadius()</a>, <a class="el" href="class_qwt_text.html#afa094ef46da5cc2856538297a249e65f">borderPen()</a>, <a class="el" href="class_qwt_text.html#a0f23d507c59b16d81b96ecf1e79131a8">backgroundBrush()</a> </dd></dl>

</div>
</div>
<a id="ad81ee227016361a0362081bc67c301da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad81ee227016361a0362081bc67c301da">&#9670;&nbsp;</a></span>draw()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtText::draw </td>
          <td>(</td>
          <td class="paramtype">QPainter *&#160;</td>
          <td class="paramname"><em>painter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>rect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Draw a text into a rectangle</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">painter</td><td>Painter </td></tr>
    <tr><td class="paramname">rect</td><td>Rectangle </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a712268214db7f3c4a3be47f7d6d13d1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a712268214db7f3c4a3be47f7d6d13d1d">&#9670;&nbsp;</a></span>heightForWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double QwtText::heightForWidth </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QFont &amp;&#160;</td>
          <td class="paramname"><em>defaultFont</em> = <code>QFont()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Find the height for a given width</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">defaultFont</td><td>Font, used for the calculation if the text has no font </td></tr>
    <tr><td class="paramname">width</td><td>Width</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Calculated height </dd></dl>

</div>
</div>
<a id="aa7a14283b812f50234fa0ee960e65307"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7a14283b812f50234fa0ee960e65307">&#9670;&nbsp;</a></span>isEmpty()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtText::isEmpty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">text()</a>.<a class="el" href="class_qwt_text.html#aa7a14283b812f50234fa0ee960e65307">isEmpty()</a> </dd></dl>

</div>
</div>
<a id="ad9947790e30eb555a651872ed97757ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9947790e30eb555a651872ed97757ef">&#9670;&nbsp;</a></span>isNull()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtText::isNull </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">text()</a>.<a class="el" href="class_qwt_text.html#ad9947790e30eb555a651872ed97757ef">isNull()</a> </dd></dl>

</div>
</div>
<a id="a4284800d239934818c1951381ff52d05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4284800d239934818c1951381ff52d05">&#9670;&nbsp;</a></span>renderFlags()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QwtText::renderFlags </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Render flags </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#afcbaa37913afaa0e92a649923cfe500b" title="Change the render flags.">setRenderFlags()</a> </dd></dl>

</div>
</div>
<a id="af016a747b234aede9f0cbbeb06ed2802"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af016a747b234aede9f0cbbeb06ed2802">&#9670;&nbsp;</a></span>setBackgroundBrush()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtText::setBackgroundBrush </td>
          <td>(</td>
          <td class="paramtype">const QBrush &amp;&#160;</td>
          <td class="paramname"><em>brush</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the background brush</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">brush</td><td>Background brush </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#a0f23d507c59b16d81b96ecf1e79131a8">backgroundBrush()</a>, <a class="el" href="class_qwt_text.html#aca4dd700b7a182114a8c0eb864c4ec2f">setBorderPen()</a> </dd></dl>

</div>
</div>
<a id="aca4dd700b7a182114a8c0eb864c4ec2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca4dd700b7a182114a8c0eb864c4ec2f">&#9670;&nbsp;</a></span>setBorderPen()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtText::setBorderPen </td>
          <td>(</td>
          <td class="paramtype">const QPen &amp;&#160;</td>
          <td class="paramname"><em>pen</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the background pen</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pen</td><td>Background pen </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#afa094ef46da5cc2856538297a249e65f">borderPen()</a>, <a class="el" href="class_qwt_text.html#af016a747b234aede9f0cbbeb06ed2802">setBackgroundBrush()</a> </dd></dl>

</div>
</div>
<a id="a7c62dfe82aa94f113cd4f8702bd2242c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c62dfe82aa94f113cd4f8702bd2242c">&#9670;&nbsp;</a></span>setBorderRadius()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtText::setBorderRadius </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>radius</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the radius for the corners of the border frame</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">radius</td><td>Radius of a rounded corner </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#a5d75098c287af25e35111c73f166d3ce">borderRadius()</a>, <a class="el" href="class_qwt_text.html#aca4dd700b7a182114a8c0eb864c4ec2f">setBorderPen()</a>, <a class="el" href="class_qwt_text.html#af016a747b234aede9f0cbbeb06ed2802">setBackgroundBrush()</a> </dd></dl>

</div>
</div>
<a id="ac7de5839a5c3b1ee367cfbd5691aa105"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7de5839a5c3b1ee367cfbd5691aa105">&#9670;&nbsp;</a></span>setColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtText::setColor </td>
          <td>(</td>
          <td class="paramtype">const QColor &amp;&#160;</td>
          <td class="paramname"><em>color</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the pen color used for drawing the text.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">color</td><td>Color </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Setting the color might have no effect, when the text contains control sequences for setting colors. </dd></dl>

</div>
</div>
<a id="ad071f3c4fae4512a1cc71554d95eb69a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad071f3c4fae4512a1cc71554d95eb69a">&#9670;&nbsp;</a></span>setFont()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtText::setFont </td>
          <td>(</td>
          <td class="paramtype">const QFont &amp;&#160;</td>
          <td class="paramname"><em>font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the font.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">font</td><td>Font </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Setting the font might have no effect, when the text contains control sequences for setting fonts. </dd></dl>

</div>
</div>
<a id="a2b621d3104ead2185d2d939b1f5b9d68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b621d3104ead2185d2d939b1f5b9d68">&#9670;&nbsp;</a></span>setLayoutAttribute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtText::setLayoutAttribute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5a">LayoutAttribute</a>&#160;</td>
          <td class="paramname"><em>attribute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Change a layout attribute</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">attribute</td><td>Layout attribute </td></tr>
    <tr><td class="paramname">on</td><td>On/Off </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#ad6b2a300b29b5f0ee90289e962c68f39">testLayoutAttribute()</a> </dd></dl>

</div>
</div>
<a id="aac80e3f05137173059b196206ceea9e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac80e3f05137173059b196206ceea9e8">&#9670;&nbsp;</a></span>setPaintAttribute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtText::setPaintAttribute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24e">PaintAttribute</a>&#160;</td>
          <td class="paramname"><em>attribute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Change a paint attribute</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">attribute</td><td>Paint attribute </td></tr>
    <tr><td class="paramname">on</td><td>On/Off</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Used by <a class="el" href="class_qwt_text.html#ad071f3c4fae4512a1cc71554d95eb69a">setFont()</a>, <a class="el" href="class_qwt_text.html#ac7de5839a5c3b1ee367cfbd5691aa105">setColor()</a>, <a class="el" href="class_qwt_text.html#aca4dd700b7a182114a8c0eb864c4ec2f">setBorderPen()</a> and <a class="el" href="class_qwt_text.html#af016a747b234aede9f0cbbeb06ed2802">setBackgroundBrush()</a> </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#a390f10d5fccfb7070fe0c1ace8fdd0ce">testPaintAttribute()</a> </dd></dl>

</div>
</div>
<a id="afcbaa37913afaa0e92a649923cfe500b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afcbaa37913afaa0e92a649923cfe500b">&#9670;&nbsp;</a></span>setRenderFlags()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtText::setRenderFlags </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>renderFlags</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Change the render flags. </p>
<p>The default setting is Qt::AlignCenter</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">renderFlags</td><td>Bitwise OR of the flags used like in QPainter::drawText()</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#a4284800d239934818c1951381ff52d05">renderFlags()</a>, <a class="el" href="class_qwt_text_engine.html#ad727f58f9eebfec86369e7f2e5bf6a59">QwtTextEngine::draw()</a> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>Some renderFlags might have no effect, depending on the text format. </dd></dl>

</div>
</div>
<a id="a9ba9caa82fcfbc4bfbf8ce20ccea981e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ba9caa82fcfbc4bfbf8ce20ccea981e">&#9670;&nbsp;</a></span>setText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtText::setText </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a>&#160;</td>
          <td class="paramname"><em>textFormat</em> = <code><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">AutoText</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Assign a new text content</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>Text content </td></tr>
    <tr><td class="paramname">textFormat</td><td>Text format</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">text()</a> </dd></dl>

</div>
</div>
<a id="aef6a1e71b1feba3116ce69f6c9de70ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef6a1e71b1feba3116ce69f6c9de70ad">&#9670;&nbsp;</a></span>setTextEngine()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QwtText::setTextEngine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a>&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_qwt_text_engine.html">QwtTextEngine</a> *&#160;</td>
          <td class="paramname"><em>engine</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Assign/Replace a text engine for a text format</p>
<p>With setTextEngine it is possible to extend Qwt with other types of text formats.</p>
<p>For <a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76aa6810f6d3c785c202d2507c601b97787" title="Draw the text as it is, using a QwtPlainTextEngine.">QwtText::PlainText</a> it is not allowed to assign a engine == NULL.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">format</td><td>Text format </td></tr>
    <tr><td class="paramname">engine</td><td>Text engine</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_math_m_l_text_engine.html" title="Text Engine for the MathML renderer of the Qt solutions package.">QwtMathMLTextEngine</a> </dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>Using <a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">QwtText::AutoText</a> does nothing. </dd></dl>

</div>
</div>
<a id="ad6b2a300b29b5f0ee90289e962c68f39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6b2a300b29b5f0ee90289e962c68f39">&#9670;&nbsp;</a></span>testLayoutAttribute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtText::testLayoutAttribute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5a">LayoutAttribute</a>&#160;</td>
          <td class="paramname"><em>attribute</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Test a layout attribute</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">attribute</td><td>Layout attribute </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true, if attribute is enabled</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#a2b621d3104ead2185d2d939b1f5b9d68">setLayoutAttribute()</a> </dd></dl>

</div>
</div>
<a id="a390f10d5fccfb7070fe0c1ace8fdd0ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a390f10d5fccfb7070fe0c1ace8fdd0ce">&#9670;&nbsp;</a></span>testPaintAttribute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtText::testPaintAttribute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24e">PaintAttribute</a>&#160;</td>
          <td class="paramname"><em>attribute</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Test a paint attribute</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">attribute</td><td>Paint attribute </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true, if attribute is enabled</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#aac80e3f05137173059b196206ceea9e8">setPaintAttribute()</a> </dd></dl>

</div>
</div>
<a id="ad94fd632f61b1e5d9f68ce65c445982e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad94fd632f61b1e5d9f68ce65c445982e">&#9670;&nbsp;</a></span>text()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString QwtText::text </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Text as QString. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#a9ba9caa82fcfbc4bfbf8ce20ccea981e">setText()</a> </dd></dl>

</div>
</div>
<a id="a053d8fdb4de77bd3b6f2eb0ecd3980ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a053d8fdb4de77bd3b6f2eb0ecd3980ca">&#9670;&nbsp;</a></span>textEngine() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_qwt_text_engine.html">QwtTextEngine</a> * QwtText::textEngine </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a>&#160;</td>
          <td class="paramname"><em>format</em> = <code><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">AutoText</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Find the text engine for a text format</p>
<p>In case of <a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">QwtText::AutoText</a> the first text engine (beside <a class="el" href="class_qwt_plain_text_engine.html" title="A text engine for plain texts.">QwtPlainTextEngine</a>) is returned, where <a class="el" href="class_qwt_text_engine.html#a98316f2f6f4f50216ceffbe9babe2901">QwtTextEngine::mightRender</a> returns true. If there is none <a class="el" href="class_qwt_plain_text_engine.html" title="A text engine for plain texts.">QwtPlainTextEngine</a> is returned.</p>
<p>If no text engine is registered for the format <a class="el" href="class_qwt_plain_text_engine.html" title="A text engine for plain texts.">QwtPlainTextEngine</a> is returnd.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>Text, needed in case of AutoText </td></tr>
    <tr><td class="paramname">format</td><td>Text format</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Corresponding text engine </dd></dl>

</div>
</div>
<a id="a2828c4976bd30572d236811bc30037be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2828c4976bd30572d236811bc30037be">&#9670;&nbsp;</a></span>textEngine() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_qwt_text_engine.html">QwtTextEngine</a> * QwtText::textEngine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a>&#160;</td>
          <td class="paramname"><em>format</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Find the text engine for a text format. </p>
<p>textEngine can be used to find out if a text format is supported.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">format</td><td>Text format </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The text engine, or NULL if no engine is available. </dd></dl>

</div>
</div>
<a id="a126221f5dbf46d03806498b262c493c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a126221f5dbf46d03806498b262c493c5">&#9670;&nbsp;</a></span>textSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSizeF QwtText::textSize </td>
          <td>(</td>
          <td class="paramtype">const QFont &amp;&#160;</td>
          <td class="paramname"><em>defaultFont</em> = <code>QFont()</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the size, that is needed to render text</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">defaultFont</td><td>Font of the text </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Calculated size </dd></dl>

</div>
</div>
<a id="a19bc6e3baa215dccab7993cd211ed975"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19bc6e3baa215dccab7993cd211ed975">&#9670;&nbsp;</a></span>usedColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QColor QwtText::usedColor </td>
          <td>(</td>
          <td class="paramtype">const QColor &amp;&#160;</td>
          <td class="paramname"><em>defaultColor</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return the color of the text, if it has one. Otherwise return defaultColor.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">defaultColor</td><td>Default color </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Color used for drawing the text</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#ac7de5839a5c3b1ee367cfbd5691aa105">setColor()</a>, <a class="el" href="class_qwt_text.html#a731bc1eca7825f55f3026f840c0fa42f" title="Return the pen color, used for painting the text.">color()</a>, <a class="el" href="class_qwt_text.html#a0d239ca5c8e0cd3c748325ad453bb13f" title="Paint attributes.">PaintAttributes</a> </dd></dl>

</div>
</div>
<a id="affd35b4cd92e45659b895c5614e3eedd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affd35b4cd92e45659b895c5614e3eedd">&#9670;&nbsp;</a></span>usedFont()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QFont QwtText::usedFont </td>
          <td>(</td>
          <td class="paramtype">const QFont &amp;&#160;</td>
          <td class="paramname"><em>defaultFont</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return the font of the text, if it has one. Otherwise return defaultFont.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">defaultFont</td><td>Default font </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Font used for drawing the text</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#ad071f3c4fae4512a1cc71554d95eb69a">setFont()</a>, <a class="el" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6" title="Return the font.">font()</a>, <a class="el" href="class_qwt_text.html#a0d239ca5c8e0cd3c748325ad453bb13f" title="Paint attributes.">PaintAttributes</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aclass_qwt_math_m_l_text_engine_html"><div class="ttname"><a href="class_qwt_math_m_l_text_engine.html">QwtMathMLTextEngine</a></div><div class="ttdoc">Text Engine for the MathML renderer of the Qt solutions package.</div><div class="ttdef"><b>Definition:</b> qwt_mathml_text_engine.h:31</div></div>
<div class="ttc" id="aclass_qwt_text_html_a63e0d6a59a427a37ed0bfa71b782fd76abf479897e4514198246a0b232a597caf"><div class="ttname"><a href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76abf479897e4514198246a0b232a597caf">QwtText::MathMLText</a></div><div class="ttdef"><b>Definition:</b> qwt_text.h:91</div></div>
<div class="ttc" id="aclass_qwt_text_html_aef6a1e71b1feba3116ce69f6c9de70ad"><div class="ttname"><a href="class_qwt_text.html#aef6a1e71b1feba3116ce69f6c9de70ad">QwtText::setTextEngine</a></div><div class="ttdeci">static void setTextEngine(QwtText::TextFormat, QwtTextEngine *)</div><div class="ttdef"><b>Definition:</b> qwt_text.cpp:656</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_qwt_text.html">QwtText</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>
